﻿package view.task
{
    import com.core.*;
    import com.sh.game.global.*;
    import com.sh.game.util.*;
    import flash.events.*;
    import flash.geom.*;
    import morn.core.components.*;

    public class SYTFBItem extends Component
    {
        private var _txt1:Label;
        private var _txtName:Label;
        private var toX:int = 194;
        private var toY:int = 310;
        private var toStageid:int = 1027;

        public function SYTFBItem()
        {
            var _loc_2:Boolean = true;
            mouseEnabled = true;
            mouseChildren = _loc_2;
            this._txt1 = new Label(MColor.getHMTL("[技能]", 6) + "<u>每日天关</u>");
            this._txt1.isHtml = true;
            this._txt1.color = MColor.New16;
            this._txt1.align = "left";
            this._txt1.stroke = "0x0";
            this._txt1.addEventListener(MouseEvent.CLICK, this.linkHandler);
            this.addChild(this._txt1);
            var _loc_1:* = UserData.getOnlineData();
            if (_loc_1)
            {
                this.updateCount(_loc_1);
            }
            return;
        }// end function

        private function linkHandler(event:MouseEvent) : void
        {
            var _loc_2:* = new Point(GlobalLayer.instance.root.mouseX, GlobalLayer.instance.root.mouseY);
            ModelProxy.change("plugin", "change", {target:"juezhan", point:_loc_2, data:3});
            return;
        }// end function

        public function updateCount(param1:Object) : void
        {
            return;
        }// end function

    }
}
